/**
 * <p>
 *
 * @Author：Roy
 * @Description：预警阈值
 * @Date：Create by 2023-12-04 14:51:04
 */
import request from '@/utils/request'

const earlyWarningThreshold = {
  // 分页查询预警阈值
  queryList(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarningThreshold/queryPage',
      method: 'post',
      data
    })
  },
  // 新增预警阈值
  add(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarningThreshold/add',
      method: 'post',
      data
    })
  },
  // 编辑预警阈值
  update(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarningThreshold/update',
      method: 'post',
      data
    })
  },
  // 删除预警阈值
  deleteById(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarningThreshold/deleteById',
      method: 'post',
      data
    })
  },
  // 启用禁用
  enableOrDisable(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarningThreshold/enableOrDisable',
      method: 'post',
      data
    })
  },
  // 批量删除预警阈值
  batchDelete(data) {
    return request({
      url: '/energy-carbon/ecp-admin/earlyWarningThreshold/batchDelete',
      method: 'post',
      data
    })
  }
}

export default earlyWarningThreshold
